const express = require('express');

const routes = express.Router();

routes.get('/',(req,resp)=>{
//    清除cookie
    resp.clearCookie('uid');
    resp.clearCookie('port_id');
    resp.clearCookie('pwd');
    resp.clearCookie('getTimes');
    resp.clearCookie('loginame');

//    重定向回登录页
    resp.redirect('/')
})

//暴露接口
module.exports = routes;